/**
 * Copyright (C), 2015-2020, bogewang
 * FileName: RpcProviderService
 * Author:   foren236598164@aliyun.com
 * Date:     2020/5/12 15:26
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.bogewang.provider;

import com.bogewang.api.SayHelloRpc;
import org.apache.servicecomb.provider.rest.common.RestSchema;

/**
 * 〈rpc服务提供方〉
 * 〈〉
 *
 * @author foren236598164@aliyun.com
 * @create 2020/5/12
 * @since 1.0.0
 */
// @RpcSchema(schemaId = "rpcProvider.hello")
@RestSchema(schemaId = "rpcProvider.hello")  //RpcSchema  RestSchema 都可以使用是rpc通信方式;
public class RpcProviderService  implements SayHelloRpc {

    @Override
    public String sayHelloRpc(String name) {
        return "hello " + name;
    }
}
